# Load necessary packages
packages <- c("dplyr", "ggplot2", "tidyr", "readr", "stringr", "GGally", "caret", "corrplot","randomForest","xgboost","factoextra","Metrics","yardstick", "pROC","knitr","kableExtra")
installed <- packages %in% installed.packages()
if(any(!installed)) install.packages(packages[!installed])
lapply(packages,library, character.only= TRUE)
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Loading required package: lattice
corrplot 0.95 loaded
randomForest 4.7-1.2
Type rfNews() to see new features/changes/bug fixes.
Attaching package: 'randomForest'
The following object is masked from 'package:ggplot2':
margin
The following object is masked from 'package:dplyr':
combine
Attaching package: 'xgboost'
The following object is masked from 'package:dplyr':
slice
Welcome! Want to learn more? See two factoextra-related books at https://goo.gl/ve3WBa
Attaching package: 'Metrics'
The following objects are masked from 'package:caret':
precision, recall
Attaching package: 'yardstick'
The following objects are masked from 'package:Metrics':
accuracy, mae, mape, mase, precision, recall, rmse, smape
The following objects are masked from 'package:caret':
precision, recall, sensitivity, specificity
The following object is masked from 'package:readr':
spec
Type 'citation("pROC")' for a citation.
Attaching package: 'pROC'
The following object is masked from 'package:Metrics':
auc
The following objects are masked from 'package:stats':
cov, smooth, var
Attaching package: 'kableExtra'
The following object is masked from 'package:dplyr':
group_rows
[[1]]
[1] "dplyr" "stats" "graphics" "grDevices" "utils" "datasets"
[7] "methods" "base"
[[2]]
[1] "ggplot2" "dplyr" "stats" "graphics" "grDevices" "utils"
[7] "datasets" "methods" "base"
[[3]]
[1] "tidyr" "ggplot2" "dplyr" "stats" "graphics" "grDevices"
[7] "utils" "datasets" "methods" "base"
[[4]]
[1] "readr" "tidyr" "ggplot2" "dplyr" "stats" "graphics"
[7] "grDevices" "utils" "datasets" "methods" "base"
[[5]]
[1] "stringr" "readr" "tidyr" "ggplot2" "dplyr" "stats"
[7] "graphics" "grDevices" "utils" "datasets" "methods" "base"
[[6]]
[1] "GGally" "stringr" "readr" "tidyr" "ggplot2" "dplyr"
[7] "stats" "graphics" "grDevices" "utils" "datasets" "methods"
[13] "base"
[[7]]
[1] "caret" "lattice" "GGally" "stringr" "readr" "tidyr"
[7] "ggplot2" "dplyr" "stats" "graphics" "grDevices" "utils"
[13] "datasets" "methods" "base"
[[8]]
[1] "corrplot" "caret" "lattice" "GGally" "stringr" "readr"
[7] "tidyr" "ggplot2" "dplyr" "stats" "graphics" "grDevices"
[13] "utils" "datasets" "methods" "base"
[[9]]
[1] "randomForest" "corrplot" "caret" "lattice" "GGally"
[6] "stringr" "readr" "tidyr" "ggplot2" "dplyr"
[11] "stats" "graphics" "grDevices" "utils" "datasets"
[16] "methods" "base"
[[10]]
[1] "xgboost" "randomForest" "corrplot" "caret" "lattice"
[6] "GGally" "stringr" "readr" "tidyr" "ggplot2"
[11] "dplyr" "stats" "graphics" "grDevices" "utils"
[16] "datasets" "methods" "base"
[[11]]
[1] "factoextra" "xgboost" "randomForest" "corrplot" "caret"
[6] "lattice" "GGally" "stringr" "readr" "tidyr"
[11] "ggplot2" "dplyr" "stats" "graphics" "grDevices"
[16] "utils" "datasets" "methods" "base"
[[12]]
[1] "Metrics" "factoextra" "xgboost" "randomForest" "corrplot"
[6] "caret" "lattice" "GGally" "stringr" "readr"
[11] "tidyr" "ggplot2" "dplyr" "stats" "graphics"
[16] "grDevices" "utils" "datasets" "methods" "base"
[[13]]
[1] "yardstick" "Metrics" "factoextra" "xgboost" "randomForest"
[6] "corrplot" "caret" "lattice" "GGally" "stringr"
[11] "readr" "tidyr" "ggplot2" "dplyr" "stats"
[16] "graphics" "grDevices" "utils" "datasets" "methods"
[21] "base"
[[14]]
[1] "pROC" "yardstick" "Metrics" "factoextra" "xgboost"
[6] "randomForest" "corrplot" "caret" "lattice" "GGally"
[11] "stringr" "readr" "tidyr" "ggplot2" "dplyr"
[16] "stats" "graphics" "grDevices" "utils" "datasets"
[21] "methods" "base"
[[15]]
[1] "knitr" "pROC" "yardstick" "Metrics" "factoextra"
[6] "xgboost" "randomForest" "corrplot" "caret" "lattice"
[11] "GGally" "stringr" "readr" "tidyr" "ggplot2"
[16] "dplyr" "stats" "graphics" "grDevices" "utils"
[21] "datasets" "methods" "base"
[[16]]
[1] "kableExtra" "knitr" "pROC" "yardstick" "Metrics"
[6] "factoextra" "xgboost" "randomForest" "corrplot" "caret"
[11] "lattice" "GGally" "stringr" "readr" "tidyr"
[16] "ggplot2" "dplyr" "stats" "graphics" "grDevices"
[21] "utils" "datasets" "methods" "base"